package com.edu.common.exception;

import com.edu.common.utils.ResultCode;

/**
 * 系统——业务异常类
 */
public class BusinessException extends RuntimeException{

    private ResultCode resultCode;

    public BusinessException(ResultCode resultCode){
        this.resultCode = resultCode;
    }

    public BusinessException(String message){
        super(message);
    }

    public BusinessException(Throwable throwable){
        super(throwable);
    }

    public  BusinessException(String message,Throwable throwable){
        super(message,throwable);
    }

    public ResultCode getResultCode() {
        return resultCode;
    }

    public void setResultCode(ResultCode resultCode){
        this.resultCode = resultCode;
    }
}
